// 封装首页相关数据接口
import request from '@/utils/request';


// 获取轮播图
export const getBannerListAPI = (params = {}) => {
    const { distributionSite = '1' } = params
    return request.get('home/banner',{params: {distributionSite}
        })
}

// 获取新鲜好物数据
export const getNewGoodsAPI = () => {
    return request.get('home/new')
}

// 获取热气推荐数据
export const getHotGoodsAPI = () => {
    return request.get('home/hot')
}

// 获取首页产品数
export const getProductListAPI = () => {
    return request.get('/home/goods')
}
